package org.apache.ftpserver.example.springwar;

import org.apache.ftpserver.FtpServer;
import org.apache.ftpserver.ftplet.FtpException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;


public class TestStart {
	
	public static void main(String[] args) throws Exception {
		System.out.println("Starting FtpServer");
		ApplicationContext ctx = new ClassPathXmlApplicationContext("org/apache/ftpserver/example/springwar/applicationContext.xml");
		FtpServer server = (FtpServer) ctx.getBean("myServer");
		server.start();
		System.out.println("FtpServer started");
	}
}
